package com.test.smartcampusapi.service;

import com.test.smartcampusapi.entity.Bill;
import com.test.smartcampusapi.mapper.BillMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Date : 4/23/2022 1:06 AM
 * Author : lingy
 * Description : ...
 */
@Service
public class BillService {
    @Autowired
    private BillMapper billMapper;

   public int createBill(int billType,double billAmount,String billTime,String billBelongCard){
       billMapper.createBill(billType, billAmount, billTime, billBelongCard);
       return 0;
   }


   public List<Bill> getBillsByCardNumber(String number){
       return billMapper.getBillsByCardNumber(number);
   }



}
